home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000075_JDanSkinner@JDanSkinner.com_Wed Nov 13 16:14:27 EST 2002.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  41 lines

  1. Article: 13841 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed.media.kyoto-u.ac.jp!nntp-relay.ihug.net!ihug.co.nz!logbridge.uoregon.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: JDanSkinner@JDanSkinner.com (Dan Skinner)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: C-Kermit FTP script
  6. Date: 13 Nov 2002 13:01:10 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 23
  9. Message-ID: <8ce22d01.0211131301.2d2c8112@posting.google.com>
  10. NNTP-Posting-Host: 24.159.192.106
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Trace: posting.google.com 1037221271 15687 127.0.0.1 (13 Nov 2002 21:01:11 GMT)
  14. X-Complaints-To: groups-abuse@google.com
  15. NNTP-Posting-Date: 13 Nov 2002 21:01:11 GMT
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13841
  17.  
  18. ; FTP script from Linux archive to skinner /icsdemo 
  19. set command quoting on
  20. set login prompt 
  21. set network tcp/ip
  22. if fail end 1 TCP/IP Failed
  23. set input echo on
  24. ftp open skinner /user:root /password:xxxxxx
  25. if fail exit 1 connection failed
  26. ftp cd /icsdemo
  27. ftp put jdsmenuarch.tar
  28. ftp put gbsarch.tar
  29. quit
  30.  
  31. The script above works when the ftp open is correct.
  32. if also works correctly (fails) if the ftp server does not exist.
  33. It is broken if the server exists but the login fails.
  34. IE: the put commands are issued.
  35. I've made it as simple as I can but can't see what I'm doing wrong.
  36. Using Linux 8.0.206 on Mandrake distro.
  37. Skinner is SCO OpenServer 5.04 if that matters?
  38.  
  39. Any help appreciated.
  40. Regards...Dan.
  41.